package com.lf.service.impl;


import com.lf.mapper.OrderMapper;
import com.lf.model.EbOrder;
import com.lf.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List<EbOrder> list (int page,int pageSize) {
        return orderMapper.findByPage((page-1)*pageSize,pageSize);
    }
    @Override
    public int getMaxPage(int pageSize) {
        return orderMapper.getMaxPage(pageSize);
    }
}
